package cn.gson.crm.model.entity;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Custom {
	// `cust_status_id
	private Integer customId;
	private String customName;
	private String customGender;
	private String customAddress;
	private String customTel;
	private String customQQ;
	private String customParentName;
	private String customParentTel;
	private String customSource;// 客户来源
	private Integer customCounselorId;// 咨询师id
	private Integer customDegreeId;// 学历id
	private Date customCreatetime;
	private Date customDrividetime;
	private Integer customStatusId;// 客户状态默认为1，潜在客户
	private String str;
	public Custom() {
	}

	public Custom(Integer customId, String customName, String customGender, String customAddress, String customTel,
			String customQQ, String customParentName, String customParentTel, String customSource,
			Integer customCounselorId, Integer customDegreeId, Date customCreatetime, Date customDrividetime,
			Integer customStatusId) {
		super();
		this.customId = customId;
		this.customName = customName;
		this.customGender = customGender;
		this.customAddress = customAddress;
		this.customTel = customTel;
		this.customQQ = customQQ;
		this.customParentName = customParentName;
		this.customParentTel = customParentTel;
		this.customSource = customSource;
		this.customCounselorId = customCounselorId;
		this.customDegreeId = customDegreeId;
		this.customCreatetime = customCreatetime;
		this.customDrividetime = customDrividetime;
		this.customStatusId = customStatusId;
	}

	public Integer getCustomId() {
		return customId;
	}

	public void setCustomId(Integer customId) {
		this.customId = customId;
	}

	public String getCustomName() {
		return customName;
	}

	public void setCustomName(String customName) {
		this.customName = customName;
	}

	public String getCustomGender() {
		return customGender;
	}

	public void setCustomGender(String customGender) {
		this.customGender = customGender;
	}

	public String getCustomAddress() {
		return customAddress;
	}

	public void setCustomAddress(String customAddress) {
		this.customAddress = customAddress;
	}

	public String getCustomTel() {
		return customTel;
	}

	public void setCustomTel(String customTel) {
		this.customTel = customTel;
	}

	public String getCustomQQ() {
		return customQQ;
	}

	public void setCustomQQ(String customQQ) {
		this.customQQ = customQQ;
	}

	public String getCustomParentName() {
		return customParentName;
	}

	public void setCustomParentName(String customParentName) {
		this.customParentName = customParentName;
	}

	public String getCustomParentTel() {
		return customParentTel;
	}

	public void setCustomParentTel(String customParentTel) {
		this.customParentTel = customParentTel;
	}

	public String getCustomSource() {
		return customSource;
	}

	public void setCustomSource(String customSource) {
		this.customSource = customSource;
	}

	public Integer getCustomCounselorId() {
		return customCounselorId;
	}

	public void setCustomCounselorId(Integer customCounselorId) {
		this.customCounselorId = customCounselorId;
	}

	public Integer getCustomDegreeId() {
		return customDegreeId;
	}

	public void setCustomDegreeId(Integer customDegreeId) {
		this.customDegreeId = customDegreeId;
	}

	public String getCustomCreatetime()throws ParseException {
		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
	
		if(customCreatetime!=null){
			str = sdf.format(customCreatetime);
		}
		
		//Date date=sdf.parse(str);
		return str;
	}

	public void setCustomCreatetime(Date customCreatetime) {
		this.customCreatetime = customCreatetime;
	}

	public Date getCustomDrividetime(){
		return customDrividetime;
	}

	public void setCustomDrividetime(Date customDrividetime) {
		this.customDrividetime = customDrividetime;
	}

	public Integer getCustomStatusId() {
		return customStatusId;
	}

	public void setCustomStatusId(Integer customStatusId) {
		this.customStatusId = customStatusId;
	}

}
